package chapter9.section1;

import java.util.Objects;

/**
 * 程序9-2：实现两个对象的比较
 **/
public class TestCompare {
    public static void main(String[] args) {
        int value = Objects.compare(30L, 40L, new TryComparator());
        System.out.println(value);
    }
}
